package com.imc.beans;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * TbDutyModel entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "tb_duty_model", catalog = "imcdbserver")
public class TbDutyModel implements java.io.Serializable {

	// Fields

	private TbDutyModelId id;

	// Constructors

	/** default constructor */
	public TbDutyModel() {
	}

	/** full constructor */
	public TbDutyModel(TbDutyModelId id) {
		this.id = id;
	}

	// Property accessors
	@EmbeddedId
	@AttributeOverrides({
			@AttributeOverride(name = "smId", column = @Column(name = "sm_id")),
			@AttributeOverride(name = "udId", column = @Column(name = "ud_id")),
			@AttributeOverride(name = "corpId", column = @Column(name = "corp_id")) })
	public TbDutyModelId getId() {
		return this.id;
	}

	public void setId(TbDutyModelId id) {
		this.id = id;
	}

}